package com.cssw.fyzb.core.model.dodb;

import com.cssw.fyzb.core.model.dodb.base.BasePayOrder;

/**
 * HEAD
 */
@SuppressWarnings("serial")
public class PayOrder extends BasePayOrder<PayOrder> {
    public static final PayOrder dao = new PayOrder().dao();

    // 支付业务场景定义
    // 福币充值
    public static final String PAY_BUSI_BUY_F_COIN = "PAY_001";
    // 人脸认证支付
    public static final String PAY_USER_AUTH = "PAY_002";
    // 开通VIP会员
    public static final String PAY_USER_VIP = "PAY_003";
    //购买果子
    public static final String PAY_BUSI_BUY_GZ_COIN = "PAY_004";

    // 待支付
    public static final String STATUS_INIT = "1";
    // 支付中
    public static final String STATUS_PAYING = "2";
    // 调起支付
    public static final String STATUS_PAY_SEND = "3";
    // 支付完成（回调通过）
    public static final String STATUS_FINISHED = "4";

    public static final String PAY_WECHAT = "1";
    public static final String PAY_Ali = "2";
    public static final String PAY_QUICK = "4";

    public boolean isPaying() {
        return STATUS_PAYING.equals(getStatus());
    }

    public boolean isPaySend() {
        return STATUS_PAY_SEND.equals(getStatus());
    }

    public boolean isPayFinished(){
        return STATUS_FINISHED.equals(getStatus());
    }

}
